package com.tyl.service.impl;

import com.tyl.entity.Role;
import com.tyl.mapper.RoleMapper;
import com.tyl.service.IRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 汤云龙
 * @since 2022-03-17
 */
@Service
@Transactional(propagation = Propagation.REQUIRED)
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {

    @Override
    public void Insert(Role role) {
       baseMapper.Insert(role);
    }
}
